﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace iMKelly {
    public partial class frmLogin : Form {
        public frmLogin() {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e) {
            CoreClass.Database dbs = new CoreClass.Database();
            frmMain frm;
            if (!dbs.connect()) {
                frm = new frmMain(null);
            }
            else {
                frm = new frmMain(dbs);
            }
            frm.Show();
            this.Hide();
        }
    }
}
